package model;

public class AdminVO {
	private String admin_tr = null;
	private String admin_id = null;
	private String admin_name = null;
	private String admin_pw = null;
	private String admin_tel = null;
	private String reg_date = null;
	
	public AdminVO() { }
	public AdminVO( String admin_id, String admin_name, String admin_pw, String admin_tel ) { 
		this.admin_id = admin_id;
		this.admin_name = admin_name;
		this.admin_pw = admin_pw;
		this.admin_tel = admin_tel;
	}
	
	public void setAdmin_tr(String admin_tr) { this.admin_tr = admin_tr; }
	public void setAdmin_id(String admin_id) { this.admin_id = admin_id; }
	public void setAdmin_name(String admin_name) { this.admin_name = admin_name; }
	public void setAdmin_pw(String admin_pw) { this.admin_pw = admin_pw; }
	public void setAdmin_tel(String admin_tel) { this.admin_tel = admin_tel; }
	public void setReg_date(String reg_date) { this.reg_date = reg_date; }
	public String getAdmin_tr() { return admin_tr; }
	public String getAdmin_id() { return admin_id; }
	public String getAdmin_name() { return admin_name; }
	public String getAdmin_pw() { return admin_pw; }
	public String getAdmin_tel() { return admin_tel; }
	public String getReg_date() { return reg_date; }
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("\n*** 입력하신 관리자 정보 입니다. ***");
		if ( getAdmin_tr() != null ) {
			sb.append("\n○ 관리자 순번 : ").append(getAdmin_tr());
		}
		sb.append("\n○ 관리자 ID : ").append(getAdmin_id())
		.append("\n○ 관리자 이름 : ").append(getAdmin_name()).append("\n○ 관리자 비밀번호 : ").append(getAdmin_pw())
		.append("\n○ 관리자 연락처 : ").append(getAdmin_tel().substring(0, 3)).append(" - ")
		.append(getAdmin_tel().substring(3 , 7)).append(" - ").append(getAdmin_tel().substring(7, 11));
		if ( getReg_date() != null ) {
			sb.append("\n○ 등록 일자 : ").append(getReg_date());
		}
		return sb.toString();
	}
}